
module.exports = app => {

    return class SmsController extends app.Controller {


        /**
         * 发送验证码
         * @returns {Promise<void>}
         */
        async send() {
            let params = this.ctx.request.body;

            let mobile = params.mobile;

            await this.ctx.service.sms.send({
                mobile,
            });

            this.success();
        }

    };
};
